home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Essentials / MacApp Documentation / MacApp AppleLink Messages / MacApp.Tech$ Sep 89 / Y0000-MacApp Memory manag-Aug89 < prev    next >
Encoding:
Text File  |  1989-09-01  |  1.4 KB  |  45 lines  |  [TEXT/GEOL]

  1. Item    8884616                         31-Aug-89        04:58
  2.  
  3. From:   SW0075                          SWV VTS Transportation Systems, GBG
  4.  
  5. To:     MACAPP.TECH$                    MACAPP Tech
  6.  
  7. Sub:    MacApp Memory management
  8.  
  9. From : SW0075                   VTS Transportation Systems, Sweden
  10.  
  11. To : MACAPP.TECH$               MACAPP Tech
  12.  
  13. Sub: MacApp Memory management
  14.  
  15. Hi,
  16. We are using MacApp 2.0, MPW 3.0 and SADE 1.0 .
  17.  
  18. In order to create a temporary nonrelocatable  memory block without fragmenting
  19. the heap, we followed the recommendations in Inside Macintosh, vol. II, page
  20. 41.
  21.  
  22. When the toolbox routine MoveHHi(handle) and HLock(handle) are called, the
  23. handle's memory block is moved directly  above the last loaded code segment,
  24. see the SADE heap dump below.
  25.  
  26.   $002AA5E0  $000CD7FC  F
  27.  •$00377DE4  $00007534  H  $00295DB4  L     Saved bits under a menu
  28.  •$0037F320  $00002488  H  $00293AE8  LPR   CODE     20 $0584  "ASegment"
  29.  
  30. In our interpretation of the MacApp documentation, this memory block resides
  31. inside the temporary space as defined in MacApp. In subsequent processing, will
  32. this invalid memory block location cause a severe error when more segments are
  33. loaded ?
  34.  
  35. Could you describe what is really happening in the case above, and how to
  36. handle this situation without letting the permanent and temporary  memory space
  37. overlap.
  38.  
  39.  
  40. Bo Ridderstolpe
  41. Dan Ryrlén
  42. VTS
  43.  
  44.  
  45.